var dom = fl.getDocumentDOM();
var lib = dom.library;

function importFile(fileUrl,className)
{
	fl.trace(fileUrl);
	dom.importFile(fileUrl,true);
	setFile(fileUrl,className);
}

function setFile(fileUrl,fileClass)
{
	var itemNames = fileUrl.split("/");
	var itemName = itemNames[itemNames.length - 1];
	lib.selectItem(itemName);
	var item = lib.getSelectedItems()[0];
	item.name = fileClass;

	if (fileClass == "face_sitButBg" && fileClass == "face_autoSign")
	{
		item.compressionType = "lossless";
	}
	item.linkageExportForAS = true;
	item.linkageExportInFirstFrame = true;
	item.linkageClassName = fileClass;
	item.linkageBaseClass = "flash.display.BitmapData";
	//item.linkageIdentifier = fileClass;
	
	
	
	
	//item.linkageIdentifier = fileClass;
}
//importFile("file:///card/2.png","Card2");
